package com.jackiechancinema.ssm.dao;

import com.jackiechancinema.ssm.bo.CommoditBO;
import com.jackiechancinema.ssm.dto.CommoReDTO;
import com.jackiechancinema.ssm.dto.CommoditDetailDTO;
import com.jackiechancinema.ssm.entity.Commodit;
import com.jackiechancinema.ssm.entity.CommoditDetail;
import com.jackiechancinema.ssm.entity.CommoditHead;
import com.jackiechancinema.ssm.entity.Order;

import java.util.List;

public interface CommoditDao {
    List<Commodit> selectAll();

    List<CommoditDetailDTO> selectCommoditDetail();

    List<CommoditHead> allHead();

    //修改库存
    int update(Commodit commodit);

    //修改负责人
    int updateHead(CommoditHead commoditHead);

    int insertCommodit(Commodit commodit);

    int insertHead(CommoditHead commoditHead);

    int deleteById(int commoditId);
    //删除负责人
    int deleteHead(int commoditId);

    List<CommoReDTO> allRecording();

    List<Commodit> queryAllPlus(CommoditBO sc);

    int insertBatch(List<Commodit> list);
}
